﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SetPasswordView.ascx.cs" Inherits="Administration_Views_SetPasswordView" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxControlToolkit" %>

<br />
<br />
<br />
<br />
<table>
    <tr>
        <td class="detailsFormLabel">
            <asp:Label Text="Password:" runat="server" />            
        </td>
        <td>
            <asp:TextBox ID="passwordTextBox" TextMode="Password" CssClass="setPasswordTextBox" runat="server" />
            <asp:RequiredFieldValidator ID="passwordRequiredFieldValidator" ControlToValidate="passwordTextBox" Display="None"
                                        ErrorMessage="Empty password is not allowed here" runat="server"  /> 
            <ajaxControlToolkit:ValidatorCalloutExtender ID="passwordRequiredValidatorCalloutExtender" HighlightCssClass="highlightValidatorCallout" 
                                                         TargetControlID="passwordRequiredFieldValidator"   
                                                         runat="server" />                                                                                         
        </td>        
    </tr>
    <tr>
        <td class="detailsFormLabel">
            <asp:Label Text="Confirmation:" runat="server" />
        </td>
        <td>
            <asp:TextBox ID="confirmationTextBox" TextMode="Password" CssClass="setPasswordTextBox" runat="server" />
            <asp:RequiredFieldValidator ID="confirmationRequiredFieldValidator" ControlToValidate="confirmationTextBox"
                                        ErrorMessage="Empty confirmation is not allowed here" runat="server"  />
            <ajaxControlToolkit:ValidatorCalloutExtender ID="confirmationRequiredValidatorCalloutExtender" HighlightCssClass="highlightValidatorCallout" 
                                                         TargetControlID="confirmationRequiredFieldValidator"   
                                                         runat="server" />                                         
            <asp:CompareValidator ID="passwordCompareValidator" ErrorMessage="Confirmation does not match the password"  Display="None" 
                                  ControlToCompare="passwordTextBox" ControlToValidate="confirmationTextBox" runat="server" />
            <ajaxControlToolkit:ValidatorCalloutExtender ID="passwordCompareValidatorCalloutExtender" HighlightCssClass="highlightValidatorCallout" 
                                                                         TargetControlID="passwordCompareValidator"   
                                                                         runat="server" />                                                                                                                                                                                 
        </td>
        
    </tr>
</table>
<br />
<br />
<br />
<br />
<asp:Panel CssClass="detailsFormCommandPanel" runat="server">
    <asp:LinkButton ID="saveLinkButton" Text="Save" OnClick="saveLinkButton_Click"  runat="server" />
    <asp:LinkButton ID="returnLinkButton" Text="Return" OnClick="returnLinkButton_Click" runat="server" />
</asp:Panel>

